package cn.legend.travel.tour.team.dao.persist.repository.impl;

import cn.legend.travel.tour.team.dao.persist.mapper.OrderMapper;
import cn.legend.travel.tour.team.dao.persist.repository.IOrderRepository;
import cn.legend.travel.tour.team.pojo.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class OrderRepositoryImpl implements IOrderRepository {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public int createOrder(Order order) {
        return orderMapper.insert(order);
    }
}
